package ru.space.academy.model;

import jakarta.persistence.*;


@Entity
@Table(name = "student", schema = "public")
public class Student extends User {

    @Column(name = "profession")
    @Enumerated(EnumType.STRING)
    private Profession profession;

    @Override
    public String getUsername() {
        return this.login;
    }

    public Profession getProfession() {
        return profession;
    }

    public void setProfession(Profession profession) {
        this.profession = profession;
    }
}